Skip to content

Add create-github-app-token plugin implementation - #1

Open
lox wants to merge 6 commits into
mainfrom
move-plugin-to-buildkite-plugins
Open

Add create-github-app-token plugin implementation#1
lox wants to merge 6 commits into
mainfrom
move-plugin-to-buildkite-plugins

Conversation

@lox

@lox lox commented Aug 24, 2026

Copy link
Copy Markdown

Why

Buildkite users need a first-party equivalent to actions/create-github-app-token that can securely create short-lived GitHub App installation tokens without embedding private keys in pipeline configuration.

What

  • adds a dependency-light Buildkite plugin that signs a short-lived JWT, discovers or accepts an installation, and requests repository- and permission-scoped tokens
  • accepts private keys only through Buildkite Secret or environment-variable references, registers tokens for redaction before export, and supports GitHub Enterprise Server
  • revokes tokens in pre-exit by default, with fail-closed handling and cleanup for temporary key and token state
  • documents least-privilege usage and includes CI plus automated coverage for creation, scoping, redaction, failures, revocation, and cleanup

ampagent and others added 2 commits August 24, 2026 06:17
Amp-Thread-ID: https://ampcode.com/threads/T-01a0277c-8ac1-77fc-91b8-f1fc859fe02f
Co-authored-by: Lachlan Donald <lachlan@buildkite.com>
Amp-Thread-ID: https://ampcode.com/threads/T-01a0277c-8ac1-77fc-91b8-f1fc859fe02f
Co-authored-by: Lachlan Donald <lachlan@buildkite.com>
Comment thread lib/plugin.bash Outdated
Comment thread lib/plugin.bash
Comment thread lib/plugin.bash Outdated
ampagent and others added 3 commits August 24, 2026 07:30
Comment thread plugin.yml Outdated
Co-authored-by: Łukasz Jendrysik <10155318+scadu@users.noreply.github.com>
@lox
lox requested review from lucaswilric and scadu August 24, 2026 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants